<?php
class ui_recommend_action_del_article extends ui {
	/**
	 * 删除单一文章和删除多个文章共用此模块
	 * 
	 * @param Object $S
	 * @param Array $param = array (
	 * 			ids					// 主键id字符串或者一个id
	 * )
	 */
	public function __construct($S, $param) {
		parent::__construct();
		
		$data_recommend_article = new data_recommend_article();

		$del = $data_recommend_article->del($this->uid, $param['ids']);
		if ($del) {
			$S->assign('data', 'true');
		} else {
			$S->assign('data', 'false');
		}
	}
}
?>